package org.example.utils;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * ClassName: TasksResponseData
 * Description:
 *
 * @Author Kotaro
 * @Create 2024/12/2 8:29
 * @Version 1.0
 */
@Data
public class TasksResponseData{
    private Integer taskId;  //任务ID
    private String requesterId;  //请求人ID
    private String requesterName;  //请求人名称
    private String taskTitle;  //任务标题
    private Integer taskCategory;  //任务种类
    private String taskContent;  //任务内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 格式化时间
    private Date appointmentTime;  //任务预约时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 格式化时间
    private Date createdAt;  //创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 格式化时间
    private Date completedAt;  //结束时间

    private Integer taskStatus;  //任务状态
    private String receiverId;  //接受人ID
    private String receiverName;  //接受人名称
    private Integer rating;  //评价等级
    private String remark;  //备注

    public TasksResponseData() {
    }

    public TasksResponseData(Integer taskId, String requesterId, String requesterName, String taskTitle, Integer taskCategory, String taskContent, Date appointmentTime, Date createdAt, Date completedAt, Integer taskStatus, String receiverId, String receiverName, Integer rating, String remark) {
        this.taskId = taskId;
        this.requesterId = requesterId;
        this.requesterName = requesterName;
        this.taskTitle = taskTitle;
        this.taskCategory = taskCategory;
        this.taskContent = taskContent;
        this.appointmentTime = appointmentTime;
        this.createdAt = createdAt;
        this.completedAt = completedAt;
        this.taskStatus = taskStatus;
        this.receiverId = receiverId;
        this.receiverName = receiverName;
        this.rating = rating;
        this.remark = remark;
    }

}
